package com.oren.constant;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/6/15
 * Time: 9:09
 * describe: 常量配置类
 */
public enum  ConfigConstant {

    CONFIG_CONSTANT("wsw.properties","核心配置文件"),
    JDBC_DRIVER("wsw.framework.jdbc.driver","jdbc驱动"),
    JDBC_URL("wsw.framework.jdbc.url","jdbc的UrL"),
    JDBC_USERNAME("wsw.framework.jdbc.username","数据库名称"),
    JDBC_PASSWORD("wsw.framework.jdbc.password","数据库的密码"),
    APP_BASE_PACKAGE("wsw.framework.app.base_package","启动的时候扫描的包"),
    APP_JSP_PATH("wsw.framework.app.jsp_path","jsp的路径地址"),
    APP_STATIC_PATH("wsw.framework.app.static_path","静态资源存放的地址");

    private String name;//参数名称

    private String desc;//参数描述


    /**
     * 私有构造,防止被外部调用
     * @param name
     * @param desc
     */
    private ConfigConstant(String name,String desc){
        this.name=name;
        this.desc=desc;

    }

    /**
     * 定义方法,返回配置文件值
     * @return
     */
    public String getName(){
        return name;
    }

    /**
     * 返回描述
     * @return
     */
    public String getDesc(){
        return desc;
    }


}
